home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / bank.doc < prev    next >
Text File  |  1995-03-31  |  5KB  |  97 lines

  1.      *** LONG ANSWERS TO SHORT QUESTIONS ABOUT BANK SWITCHING *** 
  2.                              by Joe Horn 
  3.  
  4. akcs.spirit@hpcvbbs.external.hp.com [Jeff Healey] writes: 
  5.  
  6. > I a little bit confused here.  How, exactly, do the ports in the GX 
  7. > differ from those in the SX (I'm not talking about bugs here, just 
  8. > the hardware differences, what they are for, etc.)?  Also, what do 
  9. > you mean by ports > 2 ? 
  10.  
  11. Vital Terminology: 
  12.  
  13. "Card Slot": the *physical* place where you plug in expansion cards. 
  14.         There are always 2.  The SX & GX have a diagram on the back. 
  15.  
  16. "Bank": A *physical* memory chip, intended to be located in the same 
  17.         address space as other chips, and electrically turned on and 
  18.         off to prevent address collisions with them. 
  19.  
  20. "Bank Switching": The act of electrically turning off one bank and 
  21.         turning on another.  This wouldn't be necessary if the 
  22.         processor could address lots of memory.  But it's restricted 
  23.         to two 128K plug-in RAMs, absolute maximum. By placing more 
  24.         than two in the same address space, and keeping all of them 
  25.         turned off except one, the HP48 is kept happy.  By bank 
  26.         switching, we can then access the other banks, which makes us 
  27.         happy. 
  28.  
  29. "Port": a *logical* chunk of RAM.  There can be any number of ports, 
  30.         from 1 to 3 in the SX, and from 1 to 34 in the GX. 
  31.  
  32. Port 0, which always exists, varies in size from 0K to 256K in the GX, 
  33. and from 0K to 288K in the SX, depending on how much RAM is MERGEd and 
  34. how much you store in port 0.  It expands and contracts automatically, 
  35. so that it is always exactly the size of its contents. 
  36.  
  37. Port 1 can only be 32K or 128K, depending on the size of the RAM card 
  38. you've got FREEd in card slot 1, and regardless of its contents.  This 
  39. is the only port that is the same between the SX and GX.  The LCD 
  40. panel overhead projector display can be plugged into card slot 1 on 
  41. either machine. 
  42.  
  43. In the GX, port 2 can be 32K if you plug a 32K card into slot 2.  If 
  44. you plug 128K *or larger* into slot 2, then port 2 will be 128K.  All 
  45. further banks of 128K in the card, regardless of contents, become 
  46. mapped onto ports of their own (totally unlike the SX).  The second 
  47. 128K bank becomes port 3; the third 128K bank becomes port 4, and so 
  48. on.  The 1 Meg card from HP therefore creates ports 2 through 9. 
  49. A 4 Meg card (the largest possible) would create ports 2 through 33. 
  50.  
  51. Think of card slot 1 as a single-CD player, and card slot 2 as a CD 
  52. cartridge player that can hold many CD's, and play tracks at random 
  53. from any of them in any order. 
  54.  
  55. Here's how it works.  Card slot 2 in the GX is physically the same as 
  56. card slot 1, but some of the pins have been redefined.  The display 
  57. information lines have been replaced by bank switching lines.  That's 
  58. why you can't plug the overhead projector display into slot 2 in the 
  59. GX. 
  60.  
  61. > On another subject, what does it mean for a card to be "bank 
  62. > switched"? 
  63.  
  64. Same subject, actually.  Each card slot on the SX could only access 
  65. 128K of RAM.  So Tripod Data Systems made a 256K card that was 
  66. actually two 128K banks.  You had to do the bank switching yourself 
  67. (or under your program's control).  As far as the HP48 was concerned, 
  68. only the active bank existed, and the other was 100% inaccessible. 
  69. TDS even made a 512K card that contained 4 banks.  TDS cards contained 
  70. enough chip pads and logic to support a 1 Meg card, but they never 
  71. marketed one. 
  72.  
  73. HP makes a 1 Meg cards for the GX.  (They're a dark green color, like 
  74. the GX itself).  Like the TDS cards, they are really just a bunch of 
  75. 128K banks.  BUT they differ in one radical way: they can be bank 
  76. switched directly by the GX operating system through the new 
  77. bank-switching lines.  So the GX can loop through all the banks, call 
  78. each one a "port", and show all of them simultaneously in your PORTS 
  79. menu. 
  80.  
  81. Having a 1 Meg card plugged into slot 2 is *exactly* the same as 
  82. having a modified HP48 with 8 card slots and 128K of RAM plugged into 
  83. each one, and ALL OF THEM ON-LINE!.  (They can't be MERGEd, of course; 
  84. slot 2 is permanently FREEd).  Remember the chatter about the need for 
  85. a "port extender" to give us more card slots?  No need, if you have a 
  86. GX. 
  87.  
  88. What's really cool is that this allows all of the libraries in all of 
  89. the banks to be attached and active at the same time!  You couldn't do 
  90. that with the TDS cards.  Bottom line: you never have to worry about 
  91. "bank switching" on the GX.  It takes care of it for you. 
  92.  
  93. -Joseph K. Horn-   -Peripheral Vision, Ltd.- 
  94. akcs.joehorn@hpcvbbs.cv.hp.com 
  95. Disclaimer: "Nokavi Ot Sosumi" 
  96. "If you don't like Wells Fargo, bank switch." 
  97.